
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Pig;
import cn.edu.scau.cmi.hombio.domain.PigType;
import cn.edu.scau.cmi.hombio.domain.SaleTaskQuality;
import cn.edu.scau.cmi.hombio.domain.TaskPigsty;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for PigType entities
 * 
 */
public interface PigTypeService {

	/**
	* Return all PigType entity
	* 
	 */
	public List<PigType> findAllPigTypes(Integer startResult, Integer maxRows);

	/**
	* Save an existing SaleTaskQuality entity
	* 
	 */
	public PigType savePigTypeSaleTaskQualities(Integer id, SaleTaskQuality related_saletaskqualities);

	/**
	* Delete an existing TaskPigsty entity
	* 
	 */
	public PigType deletePigTypeTaskPigsties(Integer pigtype_id, Integer related_taskpigsties_id);

	/**
	* Save an existing PigType entity
	* 
	 */
	public void savePigType(PigType pigtype);

	/**
	* Return a count of all PigType entity
	* 
	 */
	public Integer countPigTypes();

	/**
	* Delete an existing Pig entity
	* 
	 */
	public PigType deletePigTypePigs(Integer pigtype_id_1, Integer related_pigs_id);

	/**
	* Save an existing TaskPigsty entity
	* 
	 */
	public PigType savePigTypeTaskPigsties(Integer id_1, TaskPigsty related_taskpigsties);

	/**
	* Delete an existing SaleTaskQuality entity
	* 
	 */
	public PigType deletePigTypeSaleTaskQualities(Integer pigtype_id_2, Integer related_saletaskqualities_id);

	/**
	* Save an existing Pig entity
	* 
	 */
	public PigType savePigTypePigs(Integer id_2, Pig related_pigs);

	/**
	* Load an existing PigType entity
	* 
	 */
	public Set<PigType> loadPigTypes();

	/**
	* Delete an existing PigType entity
	* 
	 */
	public void deletePigType(PigType pigtype_1);

	/**
	 */
	public PigType findPigTypeByPrimaryKey(Integer id_3);
}